package cn.px.dao.mapper.upms;


import cn.px.dao.config.MyMapper;
import cn.px.dao.dto.upms.SysUserDTO;
import cn.px.dao.entity.upms.SysUser;
import cn.px.dao.vo.SysUserVO;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description 用户 mapper
 * @author 品讯科技
 * @date 2024-08
 * @Version Copyright (c) 2019,安徽阡陌网络科技有限公司 All rights reserved.
 */
@Component(value = "sysUserMapper")
public interface SysUserMapper extends MyMapper<SysUser> {

    /**
     * 用户查询，包含用户
     *
     * @param sysUserDTO :
     * @return :
     */
    List<SysUserVO> selectVOByKeyword(SysUserDTO sysUserDTO);

    /**
     * 根据主键查询用户名称
     *
     * @param id
     * @return
     */
    String selectUserNameById(Object id);

    /**
     * 用户查询，包含用户
     *
     * @param sysUserDTO :
     * @return :
     */
    List<SysUserVO> selectByDept(SysUserDTO sysUserDTO);


    /**
     * 根据部门和角色查询用户
     *
     * @param sysUserDTO
     * @return
     */
    List<SysUserVO> selectDeptRoleUser(SysUserDTO sysUserDTO);
}
